package com.rookie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rookie.entity.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Mapper接口
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    // 根据用户id查询菜单id
    List<Long> getMenuIdsByUid(@Param("userId") Long userId);

}




